package com.baize.glinkad.bean.base;

import android.app.Activity;

import com.baize.glinkad.bean.listener.InterstitialListener;
import com.baize.glinkad.manager.ADManagerFactory;

public class InterstitialModel {

    public Activity mActivity;

    public String posID;

    public InterstitialModel(Activity activity, String posID) {
        this.mActivity = activity;
        this.posID = posID;
    }

    public void setInterstitialListener(InterstitialListener interstitialListener) {
        ADManagerFactory.instance().glinkAD.setInterstitialListener(interstitialListener);
    }

    public void init() {
        ADManagerFactory.instance().glinkAD.initInstitial(mActivity, this.posID);
    }

    public void load() {
        ADManagerFactory.instance().glinkAD.loadInterstitial();
    }

    public void destroy() {

    }
    public void show() {
        ADManagerFactory.instance().glinkAD.showInterstitialAD();
    }


}
